<template>
  <div class="col-md-8">
    <h3 class="reply">评论回复：</h3>
    <h2 style="display: none" v-show="!list.length">
      暂无评论，点击左侧添加评论！！！
    </h2>
    <ul class="list-group">
      <CommentItem
        v-for="item in list"
        :key="item.userName"
        :item="item"
        :deleteOne="deleteOne"
      />
    </ul>
  </div>
</template>

<script>
import CommentItem from "./CommentItem";

export default {
  name: "CommentList",
  components: {
    CommentItem,
  },
  props: ["list", "deleteOne"],
};
</script>

<style scoped>
.reply {
  margin-top: 0px;
}
</style>